<?php
require_once(dirname(__FILE__)."/mmw/controller/mmw_controller_FrontController.php");
require_once(dirname(__FILE__)."/mmw/core/mmw_core_RequestRegistry.php");

mmw_controller_FrontController::run();

$request=mmw_core_RequestRegistry::getRequest();
//print "Successful ? ".$request->isSuccess();
//var_dump($request->getFeedback());
//var_dump($request->getResults()); 

echo json_encode(array(
    "success"=>$request->isSuccess(),
    "results"=>$request->getResults(),
    "feedback"=>$request->getFeedback()
        ));

//http://localhost/markMyWeb2/index.php?target=bookmark&action=readbytag&key=prog
//http://localhost/markMyWeb2/index.php?target=tag&action=readbytag&key=prog
//http://localhost/markMyWeb2/index.php?target=bookmark&action=create&url=whatever124.com&title=whatever9&tags=test162,test163
?>
